<?php

return [
 /*   'temp' => [
        'driver' => 'local',
        'use_after_upload' => false   //
        'root' => storage_path('temp'),
        'url' => '',
        'visibility' => 'private',
        'temp_url_expire_time' => 60, //单位分
        'allow_upload'=>[
            'middleware' => [],
            'max_size' => 1024 * 1024 *  10,
            'allow_ext' => [

            ],
        ],
        'allow_view'=>[
            'middleware' => [],
        ],
        'provide_service' => false, //提供服务
        'use_as_client' => false, //作为客户端使用
//        'use_as_client' => [
//            'app_id'=>'',
//            'secret'=>'',
//            'service_uri'=>'http://files.mozhe.cn',
//            'paths'=>[
//                'uploader'=>'/private-api/api/files/uploader/{disk}',
//                'upload_task_generate'=>'/private-api/api/files/upload_task/generate/{disk}',
//                'upload_task_get'=>'/private-api/api/files/upload_task/get',
//                'usefor'=>'/private-api/api/files/usefor',
//                'url'=>'/private-api/api/files/url/{disk}',
//                'tempUrl'=>'/private-api/api/files/temp-url/{disk}',
//                'file_info'=>'/private-api/api/files/info/{disk}',
//            ]
//        ]
    ],*/
    '_upload_temp' => [
        'driver' => 'local',
        'root' => storage_path('_upload_temp'),
        'url' => '',
        'visibility' => 'private',
        'allow_upload'=>[
            'middleware' => [],
            'max_size' => 0,
            'allow_ext' => [

            ],
        ],
        'allow_view'=>[
            'middleware' => [],
        ],
    ],
];
